
const express = require('express');

let app = express();

// 接收和解析客户端通过content-type:application/json方式传入的参数用法
app.use(express.json());
app.post('/postdata', (req, res) => {
    console.log(req.body);

    res.send(req.body);
})


app.listen(4001);